package com.rongzhe.house.internet.net;

import com.rongzhe.house.entity.GetSignTo;
import com.rongzhe.house.entity.PayContstract;
import com.rongzhe.house.entity.ResponseEntityVo;
import com.rongzhe.house.entity.voo.Goods;
import com.rongzhe.house.entity.voo.OrderVo;

import java.util.List;
import java.util.Map;

import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Query;

/**
 * Created by huang on 2018/1/22.
 */

public interface OrderInterface {
    @GET("item/list")
    Call<ResponseEntityVo<List<Goods>>> getGoods(@Query("houseId") String  houseId);

    @POST("order/create")
    Call<ResponseEntityVo<String>> createOrder(@Body Map<String, String> goodsId);

    @POST("order/sign")
    Call<ResponseEntityVo<PayContstract>> getOrderSign(@Body GetSignTo signTo);

    @GET("order/list")
    Call<ResponseEntityVo<List<OrderVo>>> getOrderList(@Query("status") int status);
}
